package org.jackysoft.hibernate;

import org.hibernate.jdbc.Work;
import org.jackysoft.entity.TreeNode;

public abstract class TreeNodeWorker implements Work{
    
	protected TreeNode node;
	protected String table;

	public TreeNodeWorker(TreeNode node,String table) {
		super();
		this.node = node;
		this.table = table;
	}
	
	String SQL(String pattern,Object... params){
		return String.format(pattern, params);
	}
     
}
